themingengine: Implement icon drawing for checks and options
authorBenjamin Otte <otte@redhat.com>
Sun, 11 May 2014 01:40:10 +0000 (03:40 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 14 May 2014 02:28:34 +0000 (04:28 +0200)
gtk/gtkthemingengine.c

index 6f428b17641db515d4bc28b4455ba5b207d63c5f..fe6a045cf7799e71af43f1ef4b1ea879b3984fa7 100644 (file)
@@ -1067,6 +1067,9 @@ gtk_theming_engine_render_check (GtkThemingEngine *engine,
   gint border_width;
   GtkThemingBackground bg;
 
+  if (render_icon_image (engine, cr, x, y, width, height))
+    return;
+
   _gtk_theming_background_init (&bg, engine, 
                                 x, y,
                                 width, height,
@@ -1189,6 +1192,9 @@ gtk_theming_engine_render_option (GtkThemingEngine *engine,
   GtkBorder border;
   GtkThemingBackground bg;
 
+  if (render_icon_image (engine, cr, x, y, width, height))
+    return;
+
   _gtk_theming_background_init (&bg, engine, 
                                 x, y,
                                 width, height,